/*
 * db_connection.h
 *
 *  Created on: 2013-2-7
 *      Author: panqiuhui
 */

#ifndef DB_CONNECTION_H_
#define DB_CONNECTION_H_
#include <mysql.h>
#include "stdbool.h"

#define HOST "localhost"
#define USER "root"
#define PASSWD "root"
#define DB "TTS"
#define PORT 3306

//连接数据库，在进行一切操作之间先调用该方法以确保数据库连接正确
bool connect_db();

//断开数据库连接，释放资源
void close_connection();

#endif /* DB_CONNECTION_H_ */
